﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ToySystem
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonPalin_Click(object sender, EventArgs e)
        {
            webRefPalin.palindrome palinService = new ToySystem.webRefPalin.palindrome();   //web reference
            LabelPalin.Text = palinService.IsPalindrome(TextBoxPalin.Text) ? "is a palindrome." : "is not a palindrome.";
        }
    }
}
